package com.tedu.charging.service.bill.feignclient;

import com.tedu.charging.common.pojo.param.ChargingProgressParam;
import com.tedu.charging.common.pojo.vo.ChargingProgressVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient("costService")
//@RequestMapping(""),接口不能加RequestMapping
public interface CostClient {
    @PostMapping("/charge/cost/computataionCost")
    public ChargingProgressVO computataionCost(ChargingProgressParam chargingProgressParam);
    @GetMapping("/charge/cost/getCost/{billId}")
    public ChargingProgressVO getCost(@PathVariable("billId") String billId);
}
